import { Vec3 } from "cc";
import { ecsclass, ECSComponent } from "../../../app-core/ecs/ECSWorld";

@ecsclass('MovableComponent')
export class MovableComponent extends ECSComponent {
    position = new Vec3();

    direction = 'down';

    speed = 0;

    constructor(position: Vec3, direction: string, speed: number) {
        super();

        this.position = position.clone();
        this.direction = direction;
        this.speed = speed;
    }
}